/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-icon {
    flex-shrink: 0;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-title {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 9px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Banner轮播 */
.banner {
    margin-top: 70px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 0 20px;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.banner-desc {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.banner-slide.active .btn {
    animation: fadeInUp 1s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: var(--white);
    border: none;
    font-size: 40px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
    border-radius: 5px;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255,255,255,0.5);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* 通用Section样式 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* 产品服务 */
.products {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-icon {
    margin-bottom: 20px;
}

.product-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--secondary-color);
}

/* 关于我们 */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-placeholder {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

/* 成功案例 */
.cases {
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.case-image {
    overflow: hidden;
}

.case-image svg {
    transition: var(--transition);
}

.case-card:hover .case-image svg {
    transform: scale(1.1);
}

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.case-desc {
    color: var(--text-light);
    margin-bottom: 15px;
}

.case-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
}

/* 团队成员 */
.team {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.team-avatar {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 25px 20px;
    text-align: center;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.team-position {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 13px;
}

/* 新闻资讯 */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.news-item:hover {
    box-shadow: var(--shadow);
    border-left-color: var(--primary-color);
}

.news-date {
    flex-shrink: 0;
    text-align: center;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    min-width: 80px;
}

.date-day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.news-desc {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
}

/* 联系我们 */
.contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.info-content p {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-icon {
    opacity: 0.9;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-text {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-desc {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 300px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-desc {
        font-size: 14px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

